package com.glacier.yuyuan.web;

import com.glacier.yuyuan.common.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * date 2022-10-16 21:19
 * index控制层
 *
 * @author glacier
 * @version 1.0
 */
@Controller
public class IndexController extends BaseController {

	@GetMapping(value = "")
	public String index() {
		return "redirect:" + adminPath;
	}

	@GetMapping(value ="login")
	public String login() {
		return "redirect:" + adminPath + "/login";
	}

	@PostMapping("login")
	public String doLogin() {
		return "redirect:" + adminPath;
	}
}
